var Main = {
    template: '#main',
    methods: {
        back() {
            this.$router.go(-1)
        },
        menuClicked(menuIndex) {
            console.log(menuIndex)
            console.log($.Encryption.user.bean.objectId)
        }
    },
    beforeDestroy() {
        $tabbar.$emit('hideTabbar')
    },
    mounted() {
        juageLogin(this)
    },
    data() {

        return {
            menus: [{
                    iconOn: 'ion-ios-home',
                    iconOff: 'ion-ios-home-outline',
                    text: '首页',
                    path: '/main/home'
                },

                {
                    iconOn: 'ion-ios-paper',
                    iconOff: 'ion-ios-paper-outline',
                    text: '文章',
                    path: '/main/md',
                    // badge: '5'
                },
                {
                    iconOn: 'ion-ios-people',
                    iconOff: 'ion-ios-people-outline',
                    text: '群组',
                    path: '/main/group',
                    // badge: '0'
                },
                {
                    iconOn: 'ion-ios-person',
                    iconOff: 'ion-ios-person-outline',
                    text: '我的',
                    path: '/main/user'
                }
            ]
        }
    }

}